/*
 * @Author: 陈天羽 7834921+woshichentianyu@user.noreply.gitee.com
 * @Date: 2022-05-12 12:28:51
 * @LastEditors: 陈天羽 7834921+woshichentianyu@user.noreply.gitee.com
 * @LastEditTime: 2022-05-12 20:29:04
 * @FilePath: \bilibiliInterface_shiping_one_node\linkMySql.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const mysql = require('mysql')


var connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: 'qw18358174722er',
    database: 'node_mysql'
});

connection.connect();

/* connection.query('select * from bilibiliUserInfo_data',function(error, results, fields){
    if(error) throw error
    console.log('The solution is: ', results);
}) */

module.exports = {
    connection
}